﻿using Project.Core.Config.Entity;
using System.ComponentModel.DataAnnotations.Schema;

namespace Project.Core.Test.Entity {
    /// <summary>
    /// 用户与权限中间表
    /// </summary>
    [Table("sys_userrole")]
    public class SysUserRole : BaseEntity<int>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Column("sys_user_id")]
        public int SysUserId { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        [Column("sys_role_id")]
        public int SysRoleId { get; set; }
    }
}
